package com.bnz.security.service.impl;

import com.bnz.security.entity.Users;
import com.bnz.security.mapper.UserMapper;
import com.bnz.security.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    //1. 查询所有用户
    @Override
    public List<Users> findAll() {
        return userMapper.selectAll();
    }
}
